/*
 * @Author: Ln
 * @Date: 2021-04-25 23:02:48
 * @LastEditors: Ln
 * @LastEditTime: 2021-04-25 23:39:33
 * @Description: 路由文件
 */

import {
  createRouter,
  createWebHistory
} from 'vue-router';

import index from './views/index.vue'

const router1 = [{
  path: '/',
  // redirect: '/',
  component: index
},
{
  path: '/about',
  name: "about",
  component: () =>
    import('./views/about.vue'),
}]

const router = createRouter({
  history: createWebHistory(),
  routes: router1,
});

export default router;


// export default createRouter({
//   base: "/",
//   history: createWebHashHistory(),
//   routes: [{
//     path: '/',
//     //redirect: "Index222",  目测是定义url地址,非真实文件地址
//     component: index
//   }, {
//     path: '/about',
//     component: about
//   }]
// })